const response = {
  status: 200,
  message: '更新用户列表成功',
  data: {}
}

export default {
  'put|users/(?<id>\\d+)/(?<key>\\w+)/(?<value>\\w+)': option => {
    var result = option.url.match('users/(?<id>\\d+)/(?<key>\\w+)/(?<value>\\w+)')
    // console.log(result.groups)
    response.message = '更新用户' + result.groups.key + '成功'
    return response
  },
  'put|users': option => {
    var keys = Object.keys(option.body)
    response.message = '更新用户' + keys.join(',') + '成功'
    return response
  }
}
